package com.yzmoney.wechat.model.receive;

import org.eclipse.persistence.oxm.annotations.XmlCDATA;

import javax.xml.bind.annotation.XmlElement;

/*
 <ToUserName><![CDATA[toUser]]></ToUserName>
 <FromUserName><![CDATA[fromUser]]></FromUserName> 
 <CreateTime>1348831860</CreateTime>
 <MsgType><![CDATA[text]]></MsgType>
 
 <MsgId>1234567890123456</MsgId>
 
 
参数  描述 

ToUserName  开发者微信号  
FromUserName  发送方帐号（一个OpenID）  
CreateTime  消息创建时间 （整型）  
MsgType  text  

MsgId  消息id，64位整型  

*/
public class BaseRevMsg {
	
	protected String toUserName; 		//  开发者微信号  
	protected String fromUserName; 		//  发送方帐号（一个OpenID）  
	protected long createTime; 			//  消息创建时间 （整型）  
	protected String msgType; 			//  text
	protected long msgId;				//  消息id，64位整型  
	
	public BaseRevMsg() {
		super();
	}
	
	@XmlCDATA
	@XmlElement(name="ToUserName")
	public String getToUserName() {
		return toUserName;
	}
	public void setToUserName(String toUserName) {
		this.toUserName = toUserName;
	}
	@XmlCDATA
	@XmlElement(name="FromUserName")
	public String getFromUserName() {
		return fromUserName;
	}
	public void setFromUserName(String fromUserName) {
		this.fromUserName = fromUserName;
	}
	@XmlElement(name="CreateTime")
	public long getCreateTime() {
		return createTime;
	}
	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	@XmlElement(name="MsgId")
	public long getMsgId() {
		return msgId;
	}
	public void setMsgId(long msgId) {
		this.msgId = msgId;
	}
	@XmlCDATA
	@XmlElement(name="MsgType")
	public String getMsgType() {
		return msgType;
	}
	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	@Override
	public String toString() {
		return "BaseRevMsg [toUserName=" + toUserName + ", fromUserName="
				+ fromUserName + ", createTime=" + createTime + ", msgType="
				+ msgType + ", msgId=" + msgId + "]";
	}
}
